from django.contrib import admin

# Register your models here.
from .models import *


class 发布Admin(admin.ModelAdmin):
    list_display = ('发布的名字', '目录名', '按钮样式', '目标机器IP')
    search_fields = ('发布的名字', '目录名', '按钮样式', '目标机器IP')


admin.site.register(发布, 发布Admin)


class 发布统计Admin(admin.ModelAdmin):
    list_display = ('项目名', '发布时间', 'commit', 'commit_info')
    search_fields = ('项目名', '发布时间', 'commit', 'commit_info')


admin.site.register(发布统计, 发布统计Admin)
